package com.smart.opcda.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import javafish.clients.opc.variant.Variant;
import lombok.Data;

import java.util.Date;

/**
 * @author dengqiao
 * @date 2024/3/10 10:29
 */
@Data
public class ReadDataResponse {
    private String topicName;
    private String item;
    private String itemId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date timeStamp;
    private Object value;
    private String dataType= Variant.getVariantName(Variant.VT_BSTR);
    private boolean itemQuality;
}
